package converters;

import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import domain.Team;

@Transactional
@Component
public class TeamToStringConverter implements Converter<Team, String> {
	
	@Override
	public String convert(Team group) {
		String result;

		if (group == null)
			result = null;
		else
			result = String.valueOf(group.getId());

		return result;
	}
	
}
